package db

import "gorm.io/gorm"

// User 外部邮箱注册的用户
type User struct {
	gorm.Model
	Email      string `gorm:"comment:邮箱"`
	Password   string `gorm:"comment:密码"`
	JoinStatus int    `gorm:"default:0; comment:是否进入赛事系统，0：进入，1：不进入"`
}

func init() {
	_ = DB.AutoMigrate(&User{})
}
